package org.biz.modules.entity;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @auhor Crixalis
 * @date 2018/7/31 9:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VerifyCode {

	private Long id;
	private String requestId;
	private String bizId;
	private String phone;
	private Long code;
	private String templateCode;
	private Integer state;
	private Date createdAt;
	private Date updatedAt;

	public VerifyCode(SendSmsResponse sendSmsResponse, String phone, Long code, String templateCode) {
		this.requestId = sendSmsResponse.getRequestId();
		this.bizId = sendSmsResponse.getBizId();
		this.phone = phone;
		this.code = code;
		this.templateCode = templateCode;
	}

}
